using System;

 namespace ClassEntities 
{
	 [Serializable]
	 public class tblMonHoc
	{
	private int stt;
	private int idTruong;
	private string monhoc;
	private string soTC;
	private string dsGiangVien;
	public tblMonHoc()
	{}
	public tblMonHoc(int stt,int idTruong,string monhoc,string soTC,string dsGiangVien)
	{
	this.stt = stt;
	this.idTruong = idTruong;
	this.monhoc = monhoc;
	this.soTC = soTC;
	this.dsGiangVien = dsGiangVien;
	}
	public int Stt{
	get { return this.stt;}
	set { if(value==null) 
		throw new Exception("stt not allow nullvalue.");
		this.stt=value;
	}	}
	public int IdTruong{
	get { return this.idTruong;}
	set {this.idTruong=value;}
	}
	public string Monhoc{
	get { return this.monhoc;}
	set {this.monhoc=value;}
	}
	public string SoTC{
	get { return this.soTC;}
	set {this.soTC=value;}
	}
	public string DsGiangVien{
	get { return this.dsGiangVien;}
	set {this.dsGiangVien=value;}
	}
	public override string ToString(){
	return this.stt+"; "+this.idTruong+"; "+this.monhoc+"; "+this.soTC+"; "+this.dsGiangVien+"; ";
	}
	public override bool Equals(Object obj)
	{
	tblMonHoc me=(tblMonHoc)obj;
	bool ret=this.Stt.Equals(me.Stt);
	return ret;
	}
	public override int GetHashCode()
	{
	return this.Stt.GetHashCode();
	}

	}
} 